function __ () {
    const path = [].slice.call(arguments)
    return '/members/mobile/'.concat(path.join('/')).concat('.ashx')
}
function _m () {
    const path = [].slice.call(arguments)
    return 'store/mock/data/'.concat(path.join('/')).concat('.json')
}
module.exports = {
    state: {
        api: {
            user_info: {url: __('getLogin')},
            // user_info: {url: _m('user/info')},
            user_menu: {url: __('getMenu')},
            // user_menu: {url: _m('user/menu')},
            // user_bind: {url: __('user/bind')},
            // user_unbind: {url: __('user/unbind')},
            chat_rooms: {url: __('getChatRooms')},
            chat_text: {url: __('sendChatText'), method: 'post'},
            chat_list: {url: __('getChatText'), method: 'post'},
            chat_room: {url: __('getChatRoom'), method: 'post'},
            // salary_list: {url: __('salary/list')},
            salary_list: {url: __('getSalary')},
            article_list: {url: __('getArticle')},
            // article_list: {url () {return _m('article/list', this.params.channel)}},
            article_detail: {url: __('getArticleDetail')},
            // article_detail: {url () {return _m('article/detail', this.params.article)}},
            article_rate: {url: __('articleRate')},
            article_remarks: {url: __('getArticleRemarks')},
            article_remark: {url: __('sendArticleRemark'), method: 'post'},
            activity_join: {url: __('joinActivity'), method: 'post'},
            activity_cancel: {url: __('cancleActivity'), method: 'post'},
            article_vote: {url: __('sendVote'), method: 'post'},
            contacts_list: {url: __('getContacts')},
            complaints_list: {url: __('getComplaintsList')},
            complaints_pub: {url: __('getComplaintsPub')},
            complaints_new: {url: __('sendComplaints'), method: 'post'},
            // compalints_reply: {url () {return _m('complaints/reply', this.params.id)}},
            complaints_reply: {url: __('sendComplaintsReply'), method: 'post'},
            gallery_list: {url: __('getAlbum')},
            gallery_open: {url: __('getAlbumPhoto')},
            parking_list: {url: __('getPark')},
            parking_book: {url: __('insertPark'), method: 'post'},
            parking_cancel: {url: __('deletePark'), method: 'post'},
            // train_list: {url: _m('train/list')},
            train_list: {url: __('getTrainList')},
            // train_lesson: {url () {return _m('train/lessons', this.params.id)}},
            train_lesson: {url: __('getTrainLesson')},
            train_test: {url () {return __('train/test', this.params.id)}, method: 'post'},
            survey_submit: {url: __('sendQuestion'), method: 'post'}
            // survey_submit: {url: _m('survey/submit')}
        }
    },
    getters: {
        api (state) {
            return state.api
        }
    }
}